import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/driver_entity.dart';

DriverEntity $DriverEntityFromJson(Map<String, dynamic> json) {
  final DriverEntity loginBeanEntity = DriverEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    loginBeanEntity.name = name;
  }
  return loginBeanEntity;
}

Map<String, dynamic> $DriverEntityToJson(DriverEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['name'] = entity.name;
  return data;
}
